package com.lysj.merchant.desk.repository;


import com.lysj.admin.utils.spring.foundation.base.BaseRepository;
import com.lysj.merchant.desk.domain.Desk;
import com.lysj.merchant.desk.vo.DeskVo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * @author Created by drj on 2019-03-07 14:35:25
 * @description 餐桌dao
 */
public interface DeskRepository extends BaseRepository<Desk> {

    //查询桌台数据
    int countByStoreIdAndStatusAndDelFlag(String storeId, Integer status, Integer deFlag);

    //查询用户正在就餐的餐桌
    Desk findByCustomerIdAndDelFlag(String customerId, Integer delFlag);

}